﻿using SoundEngine3.DspPlugins;
using System;
using ZquenceStudio3.Core;
using ZquenceStudio3.DspPlugins;
using ZquenceStudio3Host.DspPlugins.Synthesizers.Nodesizer;

namespace DefaultDspPlugins.UI.Synthesizers
{
    public class ModulizerUIDescription : IDspUIPlugin
    {
        public IDspUIPluginInfo GetDspUIPluginInfo()
        {
            return new DspUIPluginInfo<Modulizer, ModulizerUI>();
        }

        public BaseDspUIPluginAdapter CreateDspUI(ZquenceStudio3Context context, BaseDspPluginInstance dsp)
        {
            return new ModulizerUIv2(context.SoundEngine.SoundEngineContext, ZquenceStudio3Host.DspPlugins.Synthesizers.Nodesizer.Engine.ModuleManager.ModulizerType.Synthesizer);
        }
    }

    [Obsolete]
    public class NodesizerUIDescription : ModulizerUIDescription
    {
    }
}
